rm rpc test_android
export DISPLAY=:0.0

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64:/opt/intel/lib/intel64:/home/ubuntu/.bin/.git/cnn/obj/

g++ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c util.cpp -o util.o
g++ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c cnn_function.cpp -o cnn_function.o
g++ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c test_android.cpp -o test_android.o
g++ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11 -I/usr/include/mysql/ -I/home/ubuntu/.bin/.git/rpclib/include/ -lmysqlclient -L/home/ubuntu/.bin/.git/rpclib/build -lrpc -lpthread  -c rpc.cpp -o rpc.o

g++ -I/usr/include/mysql/ -I/home/ubuntu/.bin/.git/rpclib/include/ -lmysqlclient -L/home/ubuntu/.bin/.git/rpclib/build -lrpc -lpthread -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11 util.o cnn_function.o test_android.o rpc.o -o rpc  `pkg-config --cflags --libs opencv` -L/home/ubuntu/.bin/.git/cnn/obj/ -lcnn -L/opt/intel/mkl/lib/intel64 -L/opt/intel/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lmysqlclient -lrpc -lpthread

./rpc
